home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / drivers / asteroid.c < prev    next >
C/C++ Source or Header  |  2000-05-13  |  29KB  |  892 lines

  1. /***************************************************************************
  2.  
  3. Asteroids Memory Map (preliminary)
  4.  
  5. Asteroids settings:
  6.  
  7. 0 = OFF  1 = ON  X = Don't Care  $ = Atari suggests
  8.  
  9.  
  10. 8 SWITCH DIP
  11. 87654321
  12. --------
  13. XXXXXX11   English
  14. XXXXXX10   German
  15. XXXXXX01   French
  16. XXXXXX00   Spanish
  17. XXXXX1XX   4-ship game
  18. XXXXX0XX   3-ship game
  19. 11XXXXXX   Free Play
  20. 10XXXXXX   1 Coin  for 2 Plays
  21. 01XXXXXX   1 Coin  for 1 Play
  22. 00XXXXXX   2 Coins for 1 Play
  23.  
  24. Asteroids Deluxe settings:
  25.  
  26. 0 = OFF  1 = ON  X = Don't Care  $ = Atari suggests
  27.  
  28.  
  29. 8 SWITCH DIP (R5)
  30. 87654321
  31. --------
  32. XXXXXX11   English $
  33. XXXXXX10   German
  34. XXXXXX01   French
  35. XXXXXX00   Spanish
  36. XXXX11XX   2-4 ships
  37. XXXX10XX   3-5 ships $
  38. XXXX01XX   4-6 ships
  39. XXXX00XX   5-7 ships
  40. XXX1XXXX   1-play minimum $
  41. XXX0XXXX   2-play minimum
  42. XX1XXXXX   Easier gameplay for first 30000 points +
  43. XX0XXXXX   Hard gameplay throughout the game      +
  44. 11XXXXXX   Bonus ship every 10,000 points $ !
  45. 10XXXXXX   Bonus ship every 12,000 points !
  46. 01XXXXXX   Bonus ship every 15,000 points !
  47. 00XXXXXX   No bonus ships (adds one ship at game start)
  48.  
  49. + only with the newer romset
  50. ! not "every", but "at", e.g. only once.
  51.  
  52. Thanks to Gregg Woodcock for the info.
  53.  
  54. 8 SWITCH DIP (L8)
  55. 87654321
  56. --------
  57. XXXXXX11   Free Play
  58. XXXXXX10   1 Coin = 2 Plays
  59. XXXXXX01   1 Coin = 1 Play
  60. XXXXXX00   2 Coins = 1 Play $
  61. XXXX11XX   Right coin mech * 1 $
  62. XXXX10XX   Right coin mech * 4
  63. XXXX01XX   Right coin mech * 5
  64. XXXX00XX   Right coin mech * 6
  65. XXX1XXXX   Center coin mech * 1 $
  66. XXX0XXXX   Center coin mech * 2
  67. 111XXXXX   No bonus coins
  68. 110XXXXX   For every 2 coins inserted, game logic adds 1 more coin
  69. 101XXXXX   For every 4 coins inserted, game logic adds 1 more coin
  70. 100XXXXX   For every 4 coins inserted, game logic adds 2 more coins $
  71. 011XXXXX   For every 5 coins inserted, game logic adds 1 more coin
  72. ***************************************************************************/
  73.  
  74. /***************************************************************************
  75.  
  76. Lunar Lander Memory Map (preliminary)
  77.  
  78. Lunar Lander settings:
  79.  
  80. 0 = OFF  1 = ON  x = Don't Care  $ = Atari suggests
  81.  
  82.  
  83. 8 SWITCH DIP (P8) with -01 ROMs on PCB
  84. 87654321
  85. --------
  86. 11xxxxxx   450 fuel units per coin
  87. 10xxxxxx   600 fuel units per coin
  88. 01xxxxxx   750 fuel units per coin  $
  89. 00xxxxxx   900 fuel units per coin
  90. xxx0xxxx   Free play
  91. xxx1xxxx   Coined play as determined by toggles 7 & 8  $
  92. xxxx00xx   German instructions
  93. xxxx01xx   Spanish instructions
  94. xxxx10xx   French instructions
  95. xxxx11xx   English instructions  $
  96. xxxxxx11   Right coin == 1 credit/coin  $
  97. xxxxxx10   Right coin == 4 credit/coin
  98. xxxxxx01   Right coin == 5 credit/coin
  99. xxxxxx00   Right coin == 6 credit/coin
  100.            (Left coin always registers 1 credit/coin)
  101.  
  102.  
  103. 8 SWITCH DIP (P8) with -02 ROMs on PCB
  104. 87654321
  105. --------
  106. 11x1xxxx   450 fuel units per coin
  107. 10x1xxxx   600 fuel units per coin
  108. 01x1xxxx   750 fuel units per coin  $
  109. 00x1xxxx   900 fuel units per coin
  110. 11x0xxxx   1100 fuel units per coin
  111. 10x0xxxx   1300 fuel units per coin
  112. 01x0xxxx   1550 fuel units per coin
  113. 00x0xxxx   1800 fuel units per coin
  114. xx0xxxxx   Free play
  115. xx1xxxxx   Coined play as determined by toggles 5, 7, & 8  $
  116. xxxx00xx   German instructions
  117. xxxx01xx   Spanish instructions
  118. xxxx10xx   French instructions
  119. xxxx11xx   English instructions  $
  120. xxxxxx11   Right coin == 1 credit/coin  $
  121. xxxxxx10   Right coin == 4 credit/coin
  122. xxxxxx01   Right coin == 5 credit/coin
  123. xxxxxx00   Right coin == 6 credit/coin
  124.            (Left coin always registers 1 credit/coin)
  125.  
  126. Notes:
  127.  
  128. Known issues:
  129.  
  130. * Sound emu isn't perfect - sometimes explosions don't register in Asteroids
  131. * The low background thrust in Lunar Lander isn't emulated
  132. * Asteroids Deluxe and Lunar Lander both toggle the LEDs too frequently to be effectively emulated
  133. * The ERROR message in Asteroids Deluxe self test is related to a pokey problem
  134. ***************************************************************************/
  135.  
  136. #include "driver.h"
  137. #include "vidhrdw/generic.h"
  138. #include "vidhrdw/vector.h"
  139. #include "vidhrdw/avgdvg.h"
  140. #include "machine/atari_vg.h"
  141.  
  142. void asteroid_init_machine(void);
  143. int asteroid_interrupt(void);
  144. int llander_interrupt(void);
  145.  
  146. WRITE_HANDLER( asteroid_bank_switch_w );
  147. WRITE_HANDLER( astdelux_bank_switch_w );
  148. WRITE_HANDLER( astdelux_led_w );
  149. WRITE_HANDLER( llander_led_w );
  150.  
  151. WRITE_HANDLER( asteroid_explode_w );
  152. WRITE_HANDLER( asteroid_thump_w );
  153. WRITE_HANDLER( asteroid_sounds_w );
  154. int asteroid_sh_start(const struct MachineSound *msound);
  155. void asteroid_sh_stop(void);
  156. void asteroid_sh_update(void);
  157.  
  158. WRITE_HANDLER( astdelux_sounds_w );
  159. int astdelux_sh_start(const struct MachineSound *msound);
  160. void astdelux_sh_stop(void);
  161. void astdelux_sh_update(void);
  162.  
  163. WRITE_HANDLER( llander_sounds_w );
  164. WRITE_HANDLER( llander_snd_reset_w );
  165. int llander_sh_start(const struct MachineSound *msound);
  166. void llander_sh_stop(void);
  167. void llander_sh_update(void);
  168.  
  169. READ_HANDLER( asteroid_IN0_r );
  170. READ_HANDLER( asteroib_IN0_r );
  171. READ_HANDLER( asteroid_IN1_r );
  172. READ_HANDLER( asteroid_DSW1_r );
  173. READ_HANDLER( llander_IN0_r );
  174.  
  175. void llander_init_colors (unsigned char *palette, unsigned short *colortable,const unsigned char *color_prom);
  176. int llander_start(void);
  177. void llander_stop(void);
  178. void llander_screenrefresh(struct osd_bitmap *bitmap,int full_refresh);
  179.  
  180.  
  181.  
  182. /* Lunar Lander mirrors page 0 and page 1. */
  183. static unsigned char *llander_zeropage;
  184.  
  185. static READ_HANDLER( llander_zeropage_r )
  186. {
  187.     return llander_zeropage[offset & 0xff];
  188. }
  189.  
  190. static WRITE_HANDLER( llander_zeropage_w )
  191. {
  192.     llander_zeropage[offset & 0xff] = data;
  193. }
  194.  
  195.  
  196.  
  197. static struct MemoryReadAddress asteroid_readmem[] =
  198. {
  199.     { 0x0000, 0x03ff, MRA_RAM },
  200.     { 0x2000, 0x2007, asteroid_IN0_r }, /* IN0 */
  201.     { 0x2400, 0x2407, asteroid_IN1_r }, /* IN1 */
  202.     { 0x2800, 0x2803, asteroid_DSW1_r }, /* DSW1 */
  203.     { 0x4000, 0x47ff, MRA_RAM },
  204.     { 0x5000, 0x57ff, MRA_ROM }, /* vector rom */
  205.     { 0x6800, 0x7fff, MRA_ROM },
  206.     { 0xf800, 0xffff, MRA_ROM }, /* for the reset / interrupt vectors */
  207.     { -1 }    /* end of table */
  208. };
  209.  
  210. static struct MemoryReadAddress asteroib_readmem[] =
  211. {
  212.     { 0x0000, 0x03ff, MRA_RAM },
  213.     { 0x2000, 0x2000, asteroib_IN0_r }, /* IN0 */
  214.     { 0x2003, 0x2003, input_port_3_r }, /* hyperspace */
  215.     { 0x2400, 0x2407, asteroid_IN1_r }, /* IN1 */
  216.     { 0x2800, 0x2803, asteroid_DSW1_r }, /* DSW1 */
  217.     { 0x4000, 0x47ff, MRA_RAM },
  218.     { 0x5000, 0x57ff, MRA_ROM }, /* vector rom */
  219.     { 0x6800, 0x7fff, MRA_ROM },
  220.     { 0xf800, 0xffff, MRA_ROM }, /* for the reset / interrupt vectors */
  221.     { -1 }  /* end of table */
  222. };
  223.  
  224. static struct MemoryWriteAddress asteroid_writemem[] =
  225. {
  226.     { 0x0000, 0x03ff, MWA_RAM },
  227.     { 0x3000, 0x3000, avgdvg_go_w },
  228.     { 0x3200, 0x3200, asteroid_bank_switch_w },
  229.     { 0x3400, 0x3400, watchdog_reset_w },
  230.     { 0x3600, 0x3600, asteroid_explode_w },
  231.     { 0x3a00, 0x3a00, asteroid_thump_w },
  232.     { 0x3c00, 0x3c05, asteroid_sounds_w },
  233.     { 0x4000, 0x47ff, MWA_RAM, &vectorram, &vectorram_size },
  234.     { 0x5000, 0x57ff, MWA_ROM }, /* vector rom */
  235.     { 0x6800, 0x7fff, MWA_ROM },
  236.     { -1 }    /* end of table */
  237. };
  238.  
  239. static struct MemoryReadAddress astdelux_readmem[] =
  240. {
  241.     { 0x0000, 0x03ff, MRA_RAM },
  242.     { 0x2000, 0x2007, asteroid_IN0_r }, /* IN0 */
  243.     { 0x2400, 0x2407, asteroid_IN1_r }, /* IN1 */
  244.     { 0x2800, 0x2803, asteroid_DSW1_r }, /* DSW1 */
  245.     { 0x2c00, 0x2c0f, pokey1_r },
  246.     { 0x2c40, 0x2c7f, atari_vg_earom_r },
  247.     { 0x4000, 0x47ff, MRA_RAM },
  248.     { 0x4800, 0x57ff, MRA_ROM }, /* vector rom */
  249.     { 0x6000, 0x7fff, MRA_ROM },
  250.     { 0xf800, 0xffff, MRA_ROM }, /* for the reset / interrupt vectors */
  251.     { -1 }    /* end of table */
  252. };
  253.  
  254. static struct MemoryWriteAddress astdelux_writemem[] =
  255. {
  256.     { 0x0000, 0x03ff, MWA_RAM },
  257.     { 0x2405, 0x2405, astdelux_sounds_w }, /* thrust sound */
  258.     { 0x2c00, 0x2c0f, pokey1_w },
  259.     { 0x3000, 0x3000, avgdvg_go_w },
  260.     { 0x3200, 0x323f, atari_vg_earom_w },
  261.     { 0x3400, 0x3400, watchdog_reset_w },
  262.     { 0x3600, 0x3600, asteroid_explode_w },
  263.     { 0x3a00, 0x3a00, atari_vg_earom_ctrl_w },
  264. /*    { 0x3c00, 0x3c03, astdelux_led_w },*/ /* P1 LED, P2 LED, unknown, thrust? */
  265.     { 0x3c00, 0x3c03, MWA_NOP }, /* P1 LED, P2 LED, unknown, thrust? */
  266.     { 0x3c04, 0x3c04, astdelux_bank_switch_w },
  267.     { 0x3c05, 0x3c07, coin_counter_w },
  268.     { 0x4000, 0x47ff, MWA_RAM, &vectorram, &vectorram_size },
  269.     { 0x4800, 0x57ff, MWA_ROM }, /* vector rom */
  270.     { 0x6000, 0x7fff, MWA_ROM },
  271.     { -1 }    /* end of table */
  272. };
  273.  
  274. static struct MemoryReadAddress llander_readmem[] =
  275. {
  276.     { 0x0000, 0x01ff, llander_zeropage_r },
  277.     { 0x2000, 0x2000, llander_IN0_r }, /* IN0 */
  278.     { 0x2400, 0x2407, asteroid_IN1_r }, /* IN1 */
  279.     { 0x2800, 0x2803, asteroid_DSW1_r }, /* DSW1 */
  280.     { 0x2c00, 0x2c00, input_port_3_r }, /* IN3 */
  281.     { 0x4000, 0x47ff, MRA_RAM },
  282.     { 0x4800, 0x5fff, MRA_ROM }, /* vector rom */
  283.     { 0x6000, 0x7fff, MRA_ROM },
  284.     { 0xf800, 0xffff, MRA_ROM }, /* for the reset / interrupt vectors */
  285.     { -1 }  /* end of table */
  286. };
  287.  
  288. static struct MemoryWriteAddress llander_writemem[] =
  289. {
  290.     { 0x0000, 0x01ff, llander_zeropage_w, &llander_zeropage },
  291.     { 0x3000, 0x3000, avgdvg_go_w },
  292.     { 0x3200, 0x3200, llander_led_w },
  293.     { 0x3400, 0x3400, watchdog_reset_w },
  294.     { 0x3c00, 0x3c00, llander_sounds_w },
  295.     { 0x3e00, 0x3e00, llander_snd_reset_w },
  296.     { 0x4000, 0x47ff, MWA_RAM, &vectorram, &vectorram_size },
  297.     { 0x4800, 0x5fff, MWA_ROM }, /* vector rom */
  298.     { 0x6000, 0x7fff, MWA_ROM },
  299.     { -1 }  /* end of table */
  300. };
  301.  
  302. INPUT_PORTS_START( asteroid )
  303.     PORT_START /* IN0 */
  304.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  305.     /* Bit 2 and 3 are handled in the machine dependent part. */
  306.         /* Bit 2 is the 3 KHz source and Bit 3 the VG_HALT bit    */
  307.     PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  308.     PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  309.     PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 )
  310.     PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )
  311.     PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
  312.     PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_TILT )
  313.     PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
  314.  
  315.     PORT_START /* IN1 */
  316.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
  317.     PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
  318.     PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 )
  319.     PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
  320.     PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
  321.     PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 )
  322.     PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  323.     PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  324.  
  325.     PORT_START /* DSW1 */
  326.     PORT_DIPNAME( 0x03, 0x00, "Language" )
  327.     PORT_DIPSETTING (   0x00, "English" )
  328.     PORT_DIPSETTING (   0x01, "German" )
  329.     PORT_DIPSETTING (   0x02, "French" )
  330.     PORT_DIPSETTING (   0x03, "Spanish" )
  331.     PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) )
  332.     PORT_DIPSETTING (   0x04, "3" )
  333.     PORT_DIPSETTING (   0x00, "4" )
  334.     PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
  335.     PORT_DIPSETTING (   0x00, DEF_STR( Off ) )
  336.     PORT_DIPSETTING (   0x08, DEF_STR( On ) )
  337.     PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
  338.     PORT_DIPSETTING (   0x00, DEF_STR( Off ) )
  339.     PORT_DIPSETTING (   0x10, DEF_STR( On ) )
  340.     PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
  341.     PORT_DIPSETTING (   0x00, DEF_STR( Off ) )
  342.     PORT_DIPSETTING (   0x20, DEF_STR( On ) )
  343.     PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) )
  344.     PORT_DIPSETTING (   0xc0, DEF_STR( 2C_1C ) )
  345.     PORT_DIPSETTING (   0x80, DEF_STR( 1C_1C ) )
  346.     PORT_DIPSETTING (   0x40, DEF_STR( 1C_2C ) )
  347.     PORT_DIPSETTING (   0x00, DEF_STR( Free_Play ) )
  348. INPUT_PORTS_END
  349.  
  350. INPUT_PORTS_START( asteroib )
  351.     PORT_START /* IN0 */
  352.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* resets */
  353.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )    /* resets */
  354.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
  355.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
  356.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
  357.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
  358.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
  359.     /* Bit 7 is VG_HALT, handled in the machine dependant part */
  360.     PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  361.  
  362.     PORT_START /* IN1 */
  363.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
  364.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
  365.     PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 )
  366.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
  367.     PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
  368.     PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 )
  369.     PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  370.     PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  371.  
  372.     PORT_START /* DSW1 */
  373.     PORT_DIPNAME( 0x03, 0x00, "Language" )
  374.     PORT_DIPSETTING (   0x00, "English" )
  375.     PORT_DIPSETTING (   0x01, "German" )
  376.     PORT_DIPSETTING (   0x02, "French" )
  377.     PORT_DIPSETTING (   0x03, "Spanish" )
  378.     PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) )
  379.     PORT_DIPSETTING (   0x04, "3" )
  380.     PORT_DIPSETTING (   0x00, "4" )
  381.     PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
  382.     PORT_DIPSETTING (   0x00, DEF_STR( Off ) )
  383.     PORT_DIPSETTING (   0x08, DEF_STR( On ) )
  384.     PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
  385.     PORT_DIPSETTING (   0x00, DEF_STR( Off ) )
  386.     PORT_DIPSETTING (   0x10, DEF_STR( On ) )
  387.     PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
  388.     PORT_DIPSETTING (   0x00, DEF_STR( Off ) )
  389.     PORT_DIPSETTING (   0x20, DEF_STR( On ) )
  390.     PORT_DIPNAME( 0xc0, 0x80, DEF_STR( Coinage ) )
  391.     PORT_DIPSETTING (   0xc0, DEF_STR( 2C_1C ) )
  392.     PORT_DIPSETTING (   0x80, DEF_STR( 1C_1C ) )
  393.     PORT_DIPSETTING (   0x40, DEF_STR( 1C_2C ) )
  394.     PORT_DIPSETTING (   0x00, DEF_STR( Free_Play ) )
  395.  
  396.     PORT_START /* hyperspace */
  397.     PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED )
  398.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 )
  399. INPUT_PORTS_END
  400.  
  401. INPUT_PORTS_START( astdelux )
  402.     PORT_START /* IN0 */
  403.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  404.     /* Bit 2 and 3 are handled in the machine dependent part. */
  405.     /* Bit 2 is the 3 KHz source and Bit 3 the VG_HALT bit    */
  406.     PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  407.     PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  408.     PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 )
  409.     PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )
  410.     PORT_BITX( 0x20, IP_ACTIVE_HIGH, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
  411.     PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_TILT )
  412.     PORT_SERVICE( 0x80, IP_ACTIVE_HIGH )
  413.  
  414.     PORT_START /* IN1 */
  415.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )
  416.     PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )
  417.     PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 )
  418.     PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
  419.     PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
  420.     PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 )
  421.     PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  422.     PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  423.  
  424.     PORT_START /* DSW 1 */
  425.     PORT_DIPNAME( 0x03, 0x00, "Language" )
  426.     PORT_DIPSETTING (   0x00, "English" )
  427.     PORT_DIPSETTING (   0x01, "German" )
  428.     PORT_DIPSETTING (   0x02, "French" )
  429.     PORT_DIPSETTING (   0x03, "Spanish" )
  430.     PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) )
  431.     PORT_DIPSETTING (   0x00, "2-4" )
  432.     PORT_DIPSETTING (   0x04, "3-5" )
  433.     PORT_DIPSETTING (   0x08, "4-6" )
  434.     PORT_DIPSETTING (   0x0c, "5-7" )
  435.     PORT_DIPNAME( 0x10, 0x00, "Minimum plays" )
  436.     PORT_DIPSETTING (   0x00, "1" )
  437.     PORT_DIPSETTING (   0x10, "2" )
  438.     PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) )
  439.     PORT_DIPSETTING (   0x00, "Hard" )
  440.     PORT_DIPSETTING (   0x20, "Easy" )
  441.     PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Bonus_Life ) )
  442.     PORT_DIPSETTING (   0x00, "10000" )
  443.     PORT_DIPSETTING (   0x40, "12000" )
  444.     PORT_DIPSETTING (   0x80, "15000" )
  445.     PORT_DIPSETTING (   0xc0, "None" )
  446.  
  447.     PORT_START /* DSW 2 */
  448.     PORT_DIPNAME( 0x03, 0x01, DEF_STR( Coinage ) )
  449.     PORT_DIPSETTING (   0x00, DEF_STR( 2C_1C ) )
  450.     PORT_DIPSETTING (   0x01, DEF_STR( 1C_1C ) )
  451.     PORT_DIPSETTING (   0x02, DEF_STR( 1C_2C ) )
  452.     PORT_DIPSETTING (   0x03, DEF_STR( Free_Play ) )
  453.     PORT_DIPNAME( 0x0c, 0x0c, "Right Coin" )
  454.     PORT_DIPSETTING (   0x00, "*6" )
  455.     PORT_DIPSETTING (   0x04, "*5" )
  456.     PORT_DIPSETTING (   0x08, "*4" )
  457.     PORT_DIPSETTING (   0x0c, "*1" )
  458.     PORT_DIPNAME( 0x10, 0x10, "Center Coin" )
  459.     PORT_DIPSETTING (   0x00, "*2" )
  460.     PORT_DIPSETTING (   0x10, "*1" )
  461.     PORT_DIPNAME( 0xe0, 0x80, "Bonus Coins" )
  462.     PORT_DIPSETTING (   0x60, "1 each 5" )
  463.     PORT_DIPSETTING (   0x80, "2 each 4" )
  464.     PORT_DIPSETTING (   0xa0, "1 each 4" )
  465.     PORT_DIPSETTING (   0xc0, "1 each 2" )
  466.     PORT_DIPSETTING (   0xe0, "None" )
  467. INPUT_PORTS_END
  468.  
  469. INPUT_PORTS_START( llander )
  470.     PORT_START /* IN0 */
  471.     /* Bit 0 is VG_HALT, handled in the machine dependant part */
  472.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  473.     PORT_SERVICE( 0x02, IP_ACTIVE_LOW )
  474.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
  475.     /* Of the rest, Bit 6 is the 3KHz source. 3,4 and 5 are unknown */
  476.     PORT_BIT( 0x78, IP_ACTIVE_LOW, IPT_UNKNOWN )
  477.     PORT_BITX(0x80, IP_ACTIVE_LOW, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
  478.  
  479.     PORT_START /* IN1 */
  480.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
  481.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
  482.     PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
  483.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 )
  484.     PORT_BITX(0x10, IP_ACTIVE_HIGH, IPT_START2, "Select Game", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
  485.     PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_BUTTON1, "Abort", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
  486.     PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  487.     PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT | IPF_2WAY )
  488.  
  489.     PORT_START /* DSW1 */
  490.     PORT_DIPNAME( 0x03, 0x01, "Right Coin" )
  491.     PORT_DIPSETTING (   0x00, "*1" )
  492.     PORT_DIPSETTING (   0x01, "*4" )
  493.     PORT_DIPSETTING (   0x02, "*5" )
  494.     PORT_DIPSETTING (   0x03, "*6" )
  495.     PORT_DIPNAME( 0x0c, 0x00, "Language" )
  496.     PORT_DIPSETTING (   0x00, "English" )
  497.     PORT_DIPSETTING (   0x04, "French" )
  498.     PORT_DIPSETTING (   0x08, "Spanish" )
  499.     PORT_DIPSETTING (   0x0c, "German" )
  500.     PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coinage ) )
  501.     PORT_DIPSETTING (   0x00, "Normal" )
  502.     PORT_DIPSETTING (   0x20, DEF_STR( Free_Play ) )
  503.     PORT_DIPNAME( 0xd0, 0x80, "Fuel units" )
  504.     PORT_DIPSETTING (   0x00, "450" )
  505.     PORT_DIPSETTING (   0x40, "600" )
  506.     PORT_DIPSETTING (   0x80, "750" )
  507.     PORT_DIPSETTING (   0xc0, "900" )
  508.     PORT_DIPSETTING (   0x10, "1100" )
  509.     PORT_DIPSETTING (   0x50, "1300" )
  510.     PORT_DIPSETTING (   0x90, "1550" )
  511.     PORT_DIPSETTING (   0xd0, "1800" )
  512.  
  513.     /* The next one is a potentiometer */
  514.     PORT_START /* IN3 */
  515.     PORT_ANALOGX( 0xff, 0x00, IPT_PADDLE|IPF_REVERSE, 100, 10, 0, 255, KEYCODE_UP, KEYCODE_DOWN, JOYCODE_1_UP, JOYCODE_1_DOWN )
  516. INPUT_PORTS_END
  517.  
  518. INPUT_PORTS_START( llander1 )
  519.     PORT_START /* IN0 */
  520.     /* Bit 0 is VG_HALT, handled in the machine dependant part */
  521.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN )
  522.     PORT_SERVICE( 0x02, IP_ACTIVE_LOW )
  523.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_TILT )
  524.     /* Of the rest, Bit 6 is the 3KHz source. 3,4 and 5 are unknown */
  525.     PORT_BIT( 0x78, IP_ACTIVE_LOW, IPT_UNKNOWN )
  526.     PORT_BITX(0x80, IP_ACTIVE_LOW, IPT_SERVICE, "Diagnostic Step", KEYCODE_F1, IP_JOY_NONE )
  527.  
  528.     PORT_START /* IN1 */
  529.     PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
  530.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
  531.     PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
  532.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 )
  533.     PORT_BITX(0x10, IP_ACTIVE_HIGH, IPT_START2, "Select Game", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
  534.     PORT_BITX(0x20, IP_ACTIVE_HIGH, IPT_BUTTON1, "Abort", IP_KEY_DEFAULT, IP_JOY_DEFAULT )
  535.     PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT | IPF_2WAY )
  536.     PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT  | IPF_2WAY )
  537.  
  538.     PORT_START /* DSW1 */
  539.     PORT_DIPNAME( 0x03, 0x01, "Right Coin" )
  540.     PORT_DIPSETTING (   0x00, "*1" )
  541.     PORT_DIPSETTING (   0x01, "*4" )
  542.     PORT_DIPSETTING (   0x02, "*5" )
  543.     PORT_DIPSETTING (   0x03, "*6" )
  544.     PORT_DIPNAME( 0x0c, 0x00, "Language" )
  545.     PORT_DIPSETTING (   0x00, "English" )
  546.     PORT_DIPSETTING (   0x04, "French" )
  547.     PORT_DIPSETTING (   0x08, "Spanish" )
  548.     PORT_DIPSETTING (   0x0c, "German" )
  549.     PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coinage ) )
  550.     PORT_DIPSETTING (   0x00, "Normal" )
  551.     PORT_DIPSETTING (   0x10, DEF_STR( Free_Play ) )
  552.     PORT_DIPNAME( 0xc0, 0x80, "Fuel units" )
  553.     PORT_DIPSETTING (   0x00, "450" )
  554.     PORT_DIPSETTING (   0x40, "600" )
  555.     PORT_DIPSETTING (   0x80, "750" )
  556.     PORT_DIPSETTING (   0xc0, "900" )
  557.  
  558.     /* The next one is a potentiometer */
  559.     PORT_START /* IN3 */
  560.     PORT_ANALOGX( 0xff, 0x00, IPT_PADDLE|IPF_REVERSE, 100, 10, 0, 255, KEYCODE_UP, KEYCODE_DOWN, JOYCODE_1_UP, JOYCODE_1_DOWN )
  561. INPUT_PORTS_END
  562.  
  563.  
  564.  
  565. static void asteroid1_hisave(void)
  566. {
  567.     void *f;
  568.     unsigned char *RAM = memory_region(REGION_CPU1);
  569.  
  570.  
  571.     if ((f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_HIGHSCORE,1)) != 0)
  572.     {
  573.         osd_fwrite(f,&RAM[0x001c],2*10+3*11);
  574.         osd_fclose(f);
  575.     }
  576. }
  577.  
  578. static void asteroid_hisave(void)
  579. {
  580.     void *f;
  581.     unsigned char *RAM = memory_region(REGION_CPU1);
  582.  
  583.  
  584.     if ((f = osd_fopen(Machine->gamedrv->name,0,OSD_FILETYPE_HIGHSCORE,1)) != 0)
  585.     {
  586.         osd_fwrite(f,&RAM[0x001d],2*10+3*11);
  587.         osd_fclose(f);
  588.     }
  589. }
  590.  
  591.  
  592.  
  593. /* Asteroids Deluxe now uses the earom routines
  594.  * However, we keep the highscore location, just in case
  595.  *        osd_fwrite(f,&RAM[0x0023],3*10+3*11);
  596.  */
  597.  
  598. static struct CustomSound_interface asteroid_custom_interface = {
  599.     asteroid_sh_start,
  600.     asteroid_sh_stop,
  601.     asteroid_sh_update
  602. };
  603.  
  604. static struct MachineDriver machine_driver_asteroid =
  605. {
  606.     /* basic machine hardware */
  607.     {
  608.         {
  609.             CPU_M6502,
  610.             1500000,    /* 1.5 Mhz */
  611.             asteroid_readmem,asteroid_writemem,0,0,
  612.             asteroid_interrupt,4    /* 250 Hz */
  613.         }
  614.     },
  615.     60, 0,    /* frames per second, vblank duration (vector game, so no vblank) */
  616.     1,
  617.     asteroid_init_machine,
  618.  
  619.     /* video hardware */
  620.     400, 300, { 0, 1040, 70, 950 },
  621.     0,
  622.     256+32768, 0,
  623.     avg_init_palette_white,
  624.  
  625.     VIDEO_TYPE_VECTOR,
  626.     0,
  627.     dvg_start,
  628.     dvg_stop,
  629.     vector_vh_screenrefresh,
  630.  
  631.     /* sound hardware */
  632.     0,0,0,0,
  633.     {
  634.         {
  635.             SOUND_CUSTOM,
  636.             &asteroid_custom_interface
  637.         }
  638.     }
  639. };
  640.  
  641. static struct MachineDriver machine_driver_asteroib =
  642. {
  643.     /* basic machine hardware */
  644.     {
  645.         {
  646.             CPU_M6502,
  647.             1500000,    /* 1.5 Mhz */
  648.             asteroib_readmem,asteroid_writemem,0,0,
  649.             asteroid_interrupt,4    /* 250 Hz */
  650.         }
  651.     },
  652.     60, 0,    /* frames per second, vblank duration (vector game, so no vblank) */
  653.     1,
  654.     asteroid_init_machine,
  655.  
  656.     /* video hardware */
  657.     400, 300, { 0, 1040, 70, 950 },
  658.     0,
  659.     256+32768, 0,
  660.     avg_init_palette_white,
  661.  
  662.     VIDEO_TYPE_VECTOR,
  663.     0,
  664.     dvg_start,
  665.     dvg_stop,
  666.     vector_vh_screenrefresh,
  667.  
  668.     /* sound hardware */
  669.     0,0,0,0,
  670.     {
  671.         {
  672.             SOUND_CUSTOM,
  673.             &asteroid_custom_interface
  674.         }
  675.     }
  676. };
  677.  
  678.  
  679.  
  680. static struct POKEYinterface pokey_interface =
  681. {
  682.     1,    /* 1 chip */
  683.     1500000,    /* 1.5 MHz??? */
  684.     { 100 },
  685.     /* The 8 pot handlers */
  686.     { 0 },
  687.     { 0 },
  688.     { 0 },
  689.     { 0 },
  690.     { 0 },
  691.     { 0 },
  692.     { 0 },
  693.     { 0 },
  694.     /* The allpot handler */
  695.     { input_port_3_r }
  696. };
  697.  
  698. static struct CustomSound_interface astdelux_custom_interface = {
  699.     astdelux_sh_start,
  700.     astdelux_sh_stop,
  701.     astdelux_sh_update
  702. };
  703.  
  704. static struct MachineDriver machine_driver_astdelux =
  705. {
  706.     /* basic machine hardware */
  707.     {
  708.         {
  709.             CPU_M6502,
  710.             1500000,    /* 1.5 Mhz */
  711.             astdelux_readmem,astdelux_writemem,0,0,
  712.             asteroid_interrupt,4    /* 250 Hz */
  713.         }
  714.     },
  715.     60, 0,    /* frames per second, vblank duration (vector game, so no vblank) */
  716.     1,
  717.     0,
  718.  
  719.     /* video hardware */
  720.     400, 300, { 0, 1040, 70, 950 },
  721.     0,
  722.     256+32768, 0,
  723.     avg_init_palette_astdelux,
  724.  
  725.     VIDEO_TYPE_VECTOR,
  726.     0,
  727.     dvg_start,
  728.     dvg_stop,
  729.     vector_vh_screenrefresh,
  730.  
  731.     /* sound hardware */
  732.     0,0,0,0,
  733.     {
  734.         {
  735.             SOUND_POKEY,
  736.             &pokey_interface
  737.         },
  738.         {
  739.             SOUND_CUSTOM,
  740.             &astdelux_custom_interface
  741.         }
  742.     },
  743.  
  744.     atari_vg_earom_handler
  745. };
  746.  
  747.  
  748. static struct CustomSound_interface llander_custom_interface =
  749. {
  750.     llander_sh_start,
  751.     llander_sh_stop,
  752.     llander_sh_update
  753. };
  754.  
  755.  
  756. static struct MachineDriver machine_driver_llander =
  757. {
  758.     /* basic machine hardware */
  759.     {
  760.         {
  761.             CPU_M6502,
  762.             1500000,            /* 1.5 Mhz */
  763.             llander_readmem, llander_writemem,0,0,
  764.             llander_interrupt,6    /* 250 Hz */
  765.         }
  766.     },
  767.     40, 0,    /* frames per second, vblank duration (vector game, so no vblank) */
  768.     1,
  769.     0,
  770.  
  771.     /* video hardware */
  772.     400, 300, { 0, 1050, 0, 900 },
  773.     0,
  774.     256+32768, 0,
  775.     llander_init_colors,
  776.  
  777.     VIDEO_TYPE_VECTOR,
  778.     0,
  779.     llander_start,
  780.     llander_stop,
  781.     llander_screenrefresh,
  782.  
  783.     /* sound hardware */
  784.     0,0,0,0,
  785.     {
  786.         {
  787.             SOUND_CUSTOM,
  788.             &llander_custom_interface
  789.         }
  790.     }
  791. };
  792.  
  793. /***************************************************************************
  794.  
  795.   Game driver(s)
  796.  
  797. ***************************************************************************/
  798.  
  799. ROM_START( asteroid )
  800.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  801.     ROM_LOAD( "035145.02",    0x6800, 0x0800, 0x0cc75459 )
  802.     ROM_LOAD( "035144.02",    0x7000, 0x0800, 0x096ed35c )
  803.     ROM_LOAD( "035143.02",    0x7800, 0x0800, 0x312caa02 )
  804.     ROM_RELOAD(            0xf800, 0x0800 )    /* for reset/interrupt vectors */
  805.     /* Vector ROM */
  806.     ROM_LOAD( "035127.02",    0x5000, 0x0800, 0x8b71fd9e )
  807. ROM_END
  808.  
  809. ROM_START( asteroi1 )
  810.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  811.     ROM_LOAD( "035145.01",    0x6800, 0x0800, 0xe9bfda64 )
  812.     ROM_LOAD( "035144.01",    0x7000, 0x0800, 0xe53c28a9 )
  813.     ROM_LOAD( "035143.01",    0x7800, 0x0800, 0x7d4e3d05 )
  814.     ROM_RELOAD(            0xf800, 0x0800 )    /* for reset/interrupt vectors */
  815.     /* Vector ROM */
  816.     ROM_LOAD( "035127.01",    0x5000, 0x0800, 0x99699366 )
  817. ROM_END
  818.  
  819. ROM_START( asteroib )
  820.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  821.     ROM_LOAD( "035145ll.bin", 0x6800, 0x0800, 0x605fc0f2 )
  822.     ROM_LOAD( "035144ll.bin", 0x7000, 0x0800, 0xe106de77 )
  823.     ROM_LOAD( "035143ll.bin", 0x7800, 0x0800, 0x6b1d8594 )
  824.     ROM_RELOAD(            0xf800, 0x0800 )    /* for reset/interrupt vectors */
  825.     /* Vector ROM */
  826.     ROM_LOAD( "035127.02",    0x5000, 0x0800, 0x8b71fd9e )
  827. ROM_END
  828.  
  829. ROM_START( astdelux )
  830.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  831.     ROM_LOAD( "036430.02",    0x6000, 0x0800, 0xa4d7a525 )
  832.     ROM_LOAD( "036431.02",    0x6800, 0x0800, 0xd4004aae )
  833.     ROM_LOAD( "036432.02",    0x7000, 0x0800, 0x6d720c41 )
  834.     ROM_LOAD( "036433.03",    0x7800, 0x0800, 0x0dcc0be6 )
  835.     ROM_RELOAD(               0xf800, 0x0800 )    /* for reset/interrupt vectors */
  836.     /* Vector ROM */
  837.     ROM_LOAD( "036800.02",    0x4800, 0x0800, 0xbb8cabe1 )
  838.     ROM_LOAD( "036799.01",    0x5000, 0x0800, 0x7d511572 )
  839. ROM_END
  840.  
  841. ROM_START( astdelu1 )
  842.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  843.     ROM_LOAD( "036430.01",    0x6000, 0x0800, 0x8f5dabc6 )
  844.     ROM_LOAD( "036431.01",    0x6800, 0x0800, 0x157a8516 )
  845.     ROM_LOAD( "036432.01",    0x7000, 0x0800, 0xfdea913c )
  846.     ROM_LOAD( "036433.02",    0x7800, 0x0800, 0xd8db74e3 )
  847.     ROM_RELOAD(               0xf800, 0x0800 )    /* for reset/interrupt vectors */
  848.     /* Vector ROM */
  849.     ROM_LOAD( "036800.01",    0x4800, 0x0800, 0x3b597407 )
  850.     ROM_LOAD( "036799.01",    0x5000, 0x0800, 0x7d511572 )
  851. ROM_END
  852.  
  853. ROM_START( llander )
  854.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  855.     ROM_LOAD( "034572.02",    0x6000, 0x0800, 0xb8763eea )
  856.     ROM_LOAD( "034571.02",    0x6800, 0x0800, 0x77da4b2f )
  857.     ROM_LOAD( "034570.01",    0x7000, 0x0800, 0x2724e591 )
  858.     ROM_LOAD( "034569.02",    0x7800, 0x0800, 0x72837a4e )
  859.     ROM_RELOAD(            0xf800, 0x0800 )    /* for reset/interrupt vectors */
  860.     /* Vector ROM */
  861.     ROM_LOAD( "034599.01",    0x4800, 0x0800, 0x355a9371 )
  862.     ROM_LOAD( "034598.01",    0x5000, 0x0800, 0x9c4ffa68 )
  863.     /* This _should_ be the rom for international versions. */
  864.     /* Unfortunately, is it not currently available. */
  865.     ROM_LOAD( "034597.01",    0x5800, 0x0800, 0x00000000 )
  866. ROM_END
  867.  
  868. ROM_START( llander1 )
  869.     ROM_REGION( 0x10000, REGION_CPU1 )    /* 64k for code */
  870.     ROM_LOAD( "034572.01",    0x6000, 0x0800, 0x2aff3140 )
  871.     ROM_LOAD( "034571.01",    0x6800, 0x0800, 0x493e24b7 )
  872.     ROM_LOAD( "034570.01",    0x7000, 0x0800, 0x2724e591 )
  873.     ROM_LOAD( "034569.01",    0x7800, 0x0800, 0xb11a7d01 )
  874.     ROM_RELOAD(            0xf800, 0x0800 )    /* for reset/interrupt vectors */
  875.     /* Vector ROM */
  876.     ROM_LOAD( "034599.01",    0x4800, 0x0800, 0x355a9371 )
  877.     ROM_LOAD( "034598.01",    0x5000, 0x0800, 0x9c4ffa68 )
  878.     /* This _should_ be the rom for international versions. */
  879.     /* Unfortunately, is it not currently available. */
  880.     ROM_LOAD( "034597.01",    0x5800, 0x0800, 0x00000000 )
  881. ROM_END
  882.  
  883.  
  884.  
  885. GAME( 1979, asteroid, 0,        asteroid, asteroid, 0, ROT0, "Atari", "Asteroids (rev 2)" )
  886. GAME( 1979, asteroi1, asteroid, asteroid, asteroid, 0, ROT0, "Atari", "Asteroids (rev 1)" )
  887. GAME( 1979, asteroib, asteroid, asteroib, asteroib, 0, ROT0, "bootleg", "Asteroids (bootleg on Lunar Lander hardware)" )
  888. GAME( 1980, astdelux, 0,        astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 2)" )
  889. GAME( 1980, astdelu1, astdelux, astdelux, astdelux, 0, ROT0, "Atari", "Asteroids Deluxe (rev 1)" )
  890. GAME( 1979, llander,  0,        llander,  llander,  0, ROT0, "Atari", "Lunar Lander (rev 2)" )
  891. GAME( 1979, llander1, llander,  llander,  llander1, 0, ROT0, "Atari", "Lunar Lander (rev 1)" )
  892.